package com.tourism.service;

import com.github.pagehelper.PageInfo;
import com.tourism.entity.AttractionEvaluation;
import com.tourism.entity.AttractionEvaluationQuery;

/**
 * 景点订单评价列表
 */
public interface AttractionEvaluationService {
    /**
     * 新增景点评价
     *
     * @param attractionEvaluation
     * @return
     */
    boolean addAttractionEvaluation(AttractionEvaluation attractionEvaluation);

    /**
     * 根据id查找景点评价
     *
     * @param id
     * @return
     */
    AttractionEvaluation getAttractionEvaluationById(Long id);

    /**
     * 根据景点订单id查找景点评价
     *
     * @param orderId
     * @return
     */
    AttractionEvaluation getAttractionEvaluationByOrderId(Long orderId);


    /**
     * 获取景点评价列表
     *
     * @param query
     * @return
     */
    PageInfo<AttractionEvaluation> getAttractionEvaluationList(AttractionEvaluationQuery query);
}
